//
//  HelpMeDoHomeVC.m
//  MRBang
//
//  Created by 铅笔 on 16/4/19.
//  Copyright © 2016年 杭州易网新科技. All rights reserved.
//

#import "HelpMeDoHomeVC.h"
#import "HelpMeDoViewController.h"

@interface HelpMeDoHomeVC ()

@end

@implementation HelpMeDoHomeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"帮我办";
    
    [self initWithHelpMeDoHomeVCSubviews];
}

- (void) viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
    self.navigationController.navigationBarHidden = NO;
}

- (void) initWithHelpMeDoHomeVCSubviews
{
    //展位的背景图
    UIImageView *imageView_fullImage = [[UIImageView alloc] initWithFrame:CGRectMake(0,64, kScreenWidth, kScreenHeight-64)];
    [self.view addSubview:imageView_fullImage];
    imageView_fullImage.image = [UIImage imageNamed:@"helpMeDoBG"];
    
    //button
     UIButton *button_helpMeDo = [[UIButton alloc] initWithFrame:CGRectMake(48*PROPORTION_WIDTH,kScreenHeight-64-156*PROPORTION_WIDTH,kScreenWidth - 48*PROPORTION_WIDTH*2, 93*PROPORTION_WIDTH)];
    [self.view addSubview:button_helpMeDo];
    
    [button_helpMeDo setBackgroundImage:[UIImage imageNamed:@"button_helpmedo"] forState:UIControlStateNormal];
    
    [button_helpMeDo addTarget:self action:@selector(helpMeDoneAction) forControlEvents:UIControlEventTouchUpInside];
}

//点击按钮执行事件
- (void) helpMeDoneAction
{
    HelpMeDoViewController *helpMeDoView = [[HelpMeDoViewController alloc] init];
    [self.navigationController pushViewController:helpMeDoView animated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
}

@end
